[feature] Facility for listing providers and algorithms#5
[feature] Facility for listing providers and algorithms#5adamretter wants to merge 3 commits intoexpath:mainfrom
Conversation
b885ea2 to
00f3b55
Compare
00f3b55 to
1c340e5
Compare
1c340e5 to
3fcc9ff
Compare
src/test/java/ro/kuberam/libs/java/crypto/encrypt/SymmetricEncryptionTest.java
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| CryptoError(String code, String message) { | ||
| CryptoError(final String code, final String message, @Nullable final Class<? extends Throwable>... describesExceptions) { |
There was a problem hiding this comment.
Just out of curiosity:
The parameter is described as @Nullable Class<? extends Thowable>... describesExceptions
But the property is @Nullable final Class<? extends Throwable>[] describesExceptions;
What are the three dots for? Can they be used interchangeably?
There was a problem hiding this comment.
What are the three dots for
The ellipsis indicates a varargs of the specified type.
Can they be used interchangeably?
No. Ellipsis are only valid on the last arg of a parameter list, and you have to be careful on typing. Consider... void fn(String... x), is that requesting an array of string or 1+n strings, how you call fn is important.
There was a problem hiding this comment.
OK, so very much like the ...rest argument in JavaScript. Interesting! Thanks for clarifying this.
line-o
left a comment
There was a problem hiding this comment.
That was a lot to take in. It looks good to me. Certainly a refactoring for the better plus additional features.
No description provided.